home *** CD-ROM | disk | FTP | other *** search
/ Adobe Graphics & Publishing SDK 1996 December / Adobe Graphics & Publishing SDK 1996 December.iso / mac / PageMaker 6.5 SDK Mac / SourceCode / PageMakerClassLibrary / Commands / PHyphenation.cpp < prev    next >
C/C++ Source or Header  |  1996-10-14  |  1KB  |  39 lines

  1. /*
  2.  *--- PHyphenation.cpp ----------------------------------------------------
  3.  * Copyright (c) 1995-96 Adobe Systems Incorporated.  All rights reserved.
  4.  * Created on Sun, Oct 22, 1995 @ 4:19 PM by Paul Ferguson.
  5.  *
  6.  * Description:  For notes about this class, refer to the
  7.  * PCL documentation file PHyphenation.html
  8.  *-------------------------------------------------------------------------
  9.  */
  10.  
  11. #include "PHyphenation.h"
  12. #include "PRequestBuf.h"
  13. #include "PCommand.h"
  14.  
  15. const size_t REQUEST_SIZE = 8;
  16.  
  17. PHyphenation::PHyphenation(short cState, short nHyphenLimit, long xZone)
  18. {
  19.     char * temp[REQUEST_SIZE];
  20.     PRequestBuf request(temp);
  21.  
  22.     request << cState << nHyphenLimit << xZone;
  23.             
  24.     PCommand command(pm_hyphenation, request);
  25. }
  26.  
  27. PHyphenation::PHyphenation()
  28. {
  29.     //turns hyphenation off.
  30.     char * temp[REQUEST_SIZE];
  31.     PRequestBuf request(temp);
  32.  
  33.     request << (short)0 << (short)0 << (long)0;
  34.  
  35.     PCommand command(pm_hyphenation, request);
  36. }
  37.  
  38. // end of PHyphenation.cpp
  39.